package com.sz.mes.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.sz.mes.entity.Instock;
import com.sz.mes.entity.Goods;
import com.diboot.iam.entity.IamUser;
import com.sz.mes.vo.ShelfIdAndGoodQuantityVO;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.util.List;
import java.util.Date;
import com.diboot.core.util.D;

/**
 * 入库 DTO定义
 * @author hem
 * @version 1.0
 * @date 2023-05-25
 * Copyright © szhs
 */
@Getter
@Setter
@Accessors(chain = true)
public class InstockDTO extends Instock {

    private static final long serialVersionUID = -1036684598398768171L;

    /**
     * 关联字段 系统用户.真实姓名：IamUser.realname
     */
    @BindQuery(comparison = Comparison.EQ, entity = IamUser.class, field = "realname", condition = "this.create_by=id")
    private String createByName;

    /**
     * 关联字段 系统用户.真实姓名：IamUser.realname
     */
    @BindQuery(comparison = Comparison.EQ, entity = IamUser.class, field = "realname", condition = "this.update_by=id")
    private String updateByName;

    private List<ShelfIdAndGoodQuantityVO> shelfIdAndGoodsQuantityVOList;

    /**
     * 关联字段 商品.商品名称：Goods.goodsName
     */
    @BindQuery(comparison = Comparison.EQ, entity = Goods.class, field = "goodsName", condition = "this.goods_name=goods_name")
    private String goodsName;
}
